package com.mlody.chapter3;

/**
 * Created by tmlod_000 on 2014-11-30.
 */
public class Mocha extends CondimentDecorator{
Beverage beverage;

    public Mocha(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription()+"Mocha";
    }

    @Override
    public double cost() {
        return beverage.cost()+.20d;
    }
}
